package com.ddm.entity.webEntity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 技术信息
 * </p>
 *
 * @author hpq
 * @since 2025/05/08
 */
@Data
@ApiModel(value = "Technique对象", description = "技术信息实体")
public class Technique {

    @ApiModelProperty(value = "技术表id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "技术名称")
    private String name;

    @ApiModelProperty(value = "发布日期")
    @TableField("publish_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime publishDate;

    @ApiModelProperty(value = "发布者")
    private String publisher;

    @ApiModelProperty(value = "技术类型")
    private String type;

    @ApiModelProperty(value = "技术内容")
    private String content;

    @ApiModelProperty(value = "技术图片")
    private String img;

    @ApiModelProperty(value = "技术视频")
    private String video;
}
